FROM node:13.0
LABEL Menzel3 web-observability-plotter react

# https://gitee.com/Menzel3/web-observability-plotter.git
USER node
RUN cd /home/node/ && git clone https://gitee.com/Menzel3/web-observability-plotter.git
WORKDIR /home/node/web-observability-plotter
RUN npm install
# npm audit fix --force
RUN npm audit fix && \
    npm run build
# observatories is storaged in /home/node/web-observability-plotter/src/observatories.js
# VOLUME [ "/home/node/web-observability-plotter/src" ]
CMD [ "npm", "start" ]